How can I achieve this, I have a menu control in my master page which has a sitemap file attached to it?
<asp:MenuID="mainMenu"runat="server"DataSourceID="siteMapSource"
StaticDisplayLevels="10"Width="150px">
<StaticSelectedStyleCssClass="menuNodeSelected"/>
<LevelMenuItemStyles>
<asp:MenuItemStyleFont-Bold="True"Font-Underline="False"/>
</LevelMenuItemStyles>
<StaticMenuItemStyleCssClass="menuNode"/>
</asp:Menu>
<asp:SiteMapDataSourceID="siteMapSource"runat="server"ShowStartingNode="False"/>
Anonymous User
08-Oct-2014You should set a method to be called on server side OnMenuItemClick, this will rise the event of menu click. That event is (in our case): NavigationMenu_MenuItemClick.
On Code-Behind you can do whatever you want when an menu item is selected.